<?php
/**
 * @TABLE "group"
 * @JOIN_FROM "user_id < user.id"
 * @JOIN_TO "id > group_brand.group_id"
 * @JOIN_TO "id > group_content.group_id"
 * @JOIN_TO "id > group_group_topic.group_id"
 * @JOIN_TO "id > group_member.group_id"
 */
class BaseGroup extends Abstract_PluginEntityManager_Entity
{
	/**
	 * @PRIMARY
	 * @COLUMN "id"
	 * @TYPE "int"
	 * @LENGTH "10"
	 * @NOT_NULL
	 * @AUTO_INCREMENT
	 */
	public $id;

	/**
	 * @COLUMN "user_id"
	 * @TYPE "int"
	 * @LENGTH "10"
	 * @NOT_NULL
	 */
	public $user_id;

	/**
	 * @COLUMN "user_ip"
	 * @TYPE "varchar"
	 * @LENGTH "40"
	 * @NOT_NULL
	 */
	public $user_ip;

	/**
	 * @COLUMN "type"
	 * @TYPE "enum"
	 * @LENGTH "'standard','branded'"
	 * @NOT_NULL
	 * @DEFAULT "standard"
	 */
	public $type;

	/**
	 * @COLUMN "privacy"
	 * @TYPE "enum"
	 * @LENGTH "'open','closed','moderate'"
	 * @NOT_NULL
	 * @DEFAULT "open"
	 */
	public $privacy;

	/**
	 * @COLUMN "name"
	 * @TYPE "varchar"
	 * @LENGTH "255"
	 * @NOT_NULL
	 */
	public $name;

	/**
	 * @COLUMN "name_url"
	 * @TYPE "varchar"
	 * @LENGTH "255"
	 * @NOT_NULL
	 */
	public $name_url;

	/**
	 * @COLUMN "description"
	 * @TYPE "text"
	 */
	public $description;

	/**
	 * @COLUMN "image"
	 * @TYPE "varchar"
	 * @LENGTH "255"
	 */
	public $image;

	/**
	 * @COLUMN "status"
	 * @TYPE "enum"
	 * @LENGTH "'visible','deleted','closed'"
	 * @NOT_NULL
	 * @DEFAULT "visible"
	 */
	public $status;

	/**
	 * @COLUMN "count_user"
	 * @TYPE "int"
	 * @LENGTH "10"
	 * @NOT_NULL
	 * @DEFAULT "0"
	 */
	public $count_user;

	/**
	 * @COLUMN "count_discussion"
	 * @TYPE "int"
	 * @LENGTH "10"
	 * @NOT_NULL
	 * @DEFAULT "0"
	 */
	public $count_discussion;

	/**
	 * @COLUMN "count_post"
	 * @TYPE "int"
	 * @LENGTH "10"
	 * @NOT_NULL
	 * @DEFAULT "0"
	 */
	public $count_post;

	/**
	 * @COLUMN "count_photo"
	 * @TYPE "int"
	 * @LENGTH "10"
	 * @NOT_NULL
	 * @DEFAULT "0"
	 */
	public $count_photo;

	/**
	 * @COLUMN "count_video"
	 * @TYPE "int"
	 * @LENGTH "10"
	 * @NOT_NULL
	 * @DEFAULT "0"
	 */
	public $count_video;

	/**
	 * @COLUMN "count_view"
	 * @TYPE "int"
	 * @LENGTH "10"
	 * @NOT_NULL
	 * @DEFAULT "0"
	 */
	public $count_view;

	/**
	 * @COLUMN "date_added"
	 * @TYPE "timestamp"
	 * @NOT_NULL
	 * @DEFAULT "CURRENT_TIMESTAMP"
	 */
	public $date_added;

	/**
	 * @COLUMN "date_modified"
	 * @TYPE "timestamp"
	 */
	public $date_modified;
}
?>